<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/1/29 0029
 * Time: 22:48
 */

require_once 'people.php';
class Man extends people{//继承people类

    public function __construct($age,$name){
       parent::__construct($age,$name,'nan');
    }

    public function hi(){
        parent::hi();
        echo 'man',$this->getName().'say hi';
    }
}